package com.design.state;

public class RunningState extends State {

    @Override
    public void acton(String action, EventStateContext eventStateContext) {
        if ("Dead".equals(action)) {
            eventStateContext.setState(new DeadState());
        }
    }

    @Override
    public void run() {
        System.out.println("RunningState");
    }
}
